<div style="height:40px; line-height:40px; border-bottom:1px solid #ccc; margin-bottom:5px;">评论列表：</div>
<style>
.comment-list .item{margin-bottom:10px;}
.comment-list .item .hd{height:30px; line-height:30px; background-color:#f0f0f0; padding:0px 8px 0px 5px;}
.comment-list .item .hd .time{color:#aaa; float:right;}
.comment-list .item .hd .comment_reply_btn{color:#F60;}
.comment-list .item .content{padding:10px; border:1px solid #ccc; background-color:#fff;}
</style>
<div id="comment_list" class="comment-list">
<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<div class="item">
	<div class="hd"><span class="comment_sortkey red"></span>.<?php if ($this->_var['c']['nickname']): ?><?php echo $this->_var['c']['nickname']; ?><?php else: ?>游客<?php endif; ?>  <span class="time">时间：<?php echo timeago($this->_var['c']['dateline']); ?> <a href="javascript:;" class="comment_reply_btn" pid="<?php echo $this->_var['c']['id']; ?>" title="回复@<?php echo $this->_var['c']['nickname']; ?>" reply_text="回复@<?php echo $this->_var['c']['nickname']; ?>" >回复</a></span></div>
    <div class="d-content pd-5"><?php echo $this->_var['c']['content']; ?></div>
     
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<div><?php echo $this->_var['pagelist']; ?></div>
</div>
